package org.fei.demo;

import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * Hello world!
 *
 */
@SpringBootApplication
@EnableEurekaClient
@RequestMapping
public class CloudClientApp
{

    @RequestMapping("/hello")
    public String hello(){
        return "Hello Cloud Client.";
    }

    public static void main( String[] args )
    {
        new SpringApplicationBuilder(CloudClientApp.class).run(args);
        System.out.println( "========= Hello Cloud Client =========" );
    }
}
